package net.ericaro.neojavagen.classes ;
import net.ericaro.neojavagen.classes.FormalParameters;
import net.ericaro.neojavagen.types.Identifier ;

/**
* *<pre> MethodDeclarator :
    Identifier  (  FormalParameters?  )
</pre>
*/
public class MethodDeclarator   {

Identifier identifier;
FormalParameters formalparameters ;

public MethodDeclarator( Identifier identifier, FormalParameters formalparameters ){
	this.identifier = identifier; this.formalparameters = formalparameters ;
	}public MethodDeclarator( Identifier identifier ){
this.identifier = identifier ;
}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( this.identifier ).append(" ");
stringbuilder.append( "" ).append(" ");
stringbuilder.append( "(" ).append(" ");
stringbuilder.append( "" ).append(" ");
if (this.formalparameters !=null ) stringbuilder.append( this.formalparameters ).append(" ");
stringbuilder.append( "" ).append(" ");
stringbuilder.append( ")" ).append(" ") ;
	return stringbuilder.toString();
}

}
